/**
 * Promise的对象方法：finally
 *  最终一定会执行
 */
const promise = new Promise((resolve, reject) => {
  // resolve('resolve msg')
  reject('reject msg')
})
promise
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })
  .finally(() => {
    console.log('finally code execute')
  })
